package com.dahaiwuliang.code.server;

import com.dahaiwuliang.code.pojo.Comment;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Sort;

public interface CommentService {

    void  save(Comment comment);

    /**
     * 分页查询；
     */
    public Page<Comment> List(Comment s_comment, Integer page, Integer pageSize, Sort.Direction direction,String... properties);


    /**
     * 根据条件获取总计数
     */
    Long getTotal(Comment comment);

    void delete(Integer id);

    Comment get(Integer id);
    void deleteByArticleId(Integer articleId);

}
